export default class DesensitizedUtil {
  static mobilePhone (phone) {
    const before = phone.substr(0, 3)
    const after = phone.substr(phone.length - 4)
    const middle = '*'.repeat(phone.length - 7)
    return `${before}${middle}${after}`
  }
}